package com.czn.entity;

import lombok.Data;
import org.beetl.sql.core.annotatoin.Table;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;


/*
 *
 * gen by beetlsql 2021-04-14
 */
@Table(name = "hospital.appointment")
@Data
public class Appointment {

    // alias
    public static final String ALIAS_id = "id";
    public static final String ALIAS_doctor_id = "doctor_id";
    public static final String ALIAS_patient_id = "patient_id";
    public static final String ALIAS_expenses = "expenses";
    public static final String ALIAS_status = "status";
    public static final String ALIAS_time = "time";

    /*
    主键
    */
    private Integer id;
    /*
    医生id
    */
    private Integer doctorId;
    /*
    患者id
    */
        private Integer patientId;
    /*
    门诊费
    */
    private BigDecimal expenses;
    /*
    就诊状态
    */
    private String status;
    /*
    预约时间
    */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date time;

    /**
     * 患者姓名
     */
    private String patientName;
    /**
     * 医生姓名
     */
    private String doctorName;
    /**
     * 科室
     */
    private String Department;
}
